const {httPrequest} = require('./request')
const {requestData} = httPrequest
export const method = {
    post(url, data, options = {}) {
        return requestData({
            url,
            data,
            method: 'POST'
        }, options)
    },
    get(url, params, options = {}) {
        return requestData({
            url,
            params,
            method: 'GET'
        }, options)
    },
}